import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		baseUserInfo: '', // 存储获取的用户微信的信息（用户名、头像）
		token: '',
	},
	mutations: {
		setBaseUserInfo(state, provider) {
			state.baseUserInfo = provider
		},
		setToken(state, provider) {
			state.token = provider
		},
	},
	actions: {

	}
})

export default store
